package com.example.firstapp.entity;

import java.util.ArrayList;
import java.util.List;

import com.example.firstapp.entity.Domain.FoodType;
import com.example.firstapp.entity.Domain.PriceType;

public class Restaurant {
	private String name;
	private int averageRating; // round to a number
	private String address;
	private String longitude;
	private String latitude;
	private List<FoodType> foodtypes;
	private PriceType priceType;
	private boolean isTakeAway;
	private String distance;
	private double systemScore;
	private String intro = "This is a restaurant.";
	private int menu;
	private List<RestaurantReview> reviews = new ArrayList<RestaurantReview>();

	// add more attributes here

	public Restaurant(String name, String address, List<FoodType> foodtypes,
			PriceType priceType, String longitude, String latitude,
			int avgRating) {
		this.name = name;
		this.address = address;
		this.foodtypes = foodtypes;
		this.priceType = priceType;
		this.longitude = longitude;
		this.latitude = latitude;
		this.averageRating = avgRating;
	}

	public List<RestaurantReview> getReviews() {
		return reviews;
	}

	public void setReviews(List<RestaurantReview> reviews) {
		this.reviews = reviews;
	}

	public boolean isTakeAway() {
		return isTakeAway;
	}

	public void setTakeAway(boolean isTakeAway) {
		this.isTakeAway = isTakeAway;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAverageRating() {
		return averageRating;
	}

	public void setAverageRating(int averageRating) {
		this.averageRating = averageRating;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String addr) {
		this.address = addr;
	}

	public List<FoodType> getFoodtypes() {
		return foodtypes;
	}

	public void setFoodtypes(List<FoodType> foodtypes) {
		this.foodtypes = foodtypes;
	}

	public PriceType getPriceType() {
		return priceType;
	}

	public void setPriceType(PriceType priceType) {
		this.priceType = priceType;
	}

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public double getSystemScore() {
		return systemScore;
	}

	public void setSystemScore(double systemScore) {
		this.systemScore = systemScore;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public int getMenu() {
		return menu;
	}

	public void setMenu(int menu) {
		this.menu = menu;
	}

}
